<?php
    require_once dirname(__FILE__) . '/../../utils/Utils.php';
    //引入公共参数
    $constant = include(dirname(__FILE__) . '/../../AppletConstant.php');

    $utils =	new Utils();
    /**
     * 支付密码验证流水号
     *
     */

    //调用地址
    $url = "https://open.95516.com/open/access/1.0/verifyPwdSeqId";

    //拼装参数Map
    $params 	=	array();

    $params["appId"] 			    =	$constant['appId'];
    $params["openId"] 			    =	$constant['openId'];
    $params["accessToken"] 		    =	$constant['accessToken'];

    //终端IP(选填)
    $params["clientIp"] 			=	"";

    //业务操作流水号
    $params["bizOrderId"] 			=	"";

    //业务类型 （小程序: 4p ）
    $params["bizType"] 			    =	"";

    //商户号(小程序同 appId )
    $params["merchantId"] 			=	"";

    //随机字符串
    $nonceStr = $utils->createNonceStr();
    $params["nonceStr"] 			=	$nonceStr;

    //通知地址
    $params["notifyUrl"] 			=	"";

    //时间戳
    $params["timestamp"] 			=	time();

    //签名
    $signature = $utils->sign($params, $constant['SIGN_KEY_PACKET']);
    $params["signature"] 			=	$signature;

    //发送请求

    $resultStr 	=	$utils->sendPostGson($url,$params);
    header("Content-type: text/html; charset=utf-8");
    print_r("-------支付密码验证流水号: ".$resultStr." --------- ");

    exit;
?>